package com.my.concurrency.heima;

/**
 * @author: marshal
 * @date: 2023-06-27 21:53
 */
public class TestFrames {

    public static void main(String[] args) {
        var t1 = new Thread(() -> m1(20));
        t1.setName("t1");
        t1.start();

        m1(10);
    }

    public static void m1(int x) {
        int y = x + 1;
        var m = m2();
        System.out.println(m);
    }

    public static Object m2(){
        Object m = new Object();
        return m;
    }

}
